home *** CD-ROM | disk | FTP | other *** search
- /* Style.ged by Troels Walsted Hansen
- ** $VER: Style.ged v1.00 (09.06.95)
- **
- ** Purpose: Apply style to word.
- */
-
- options results
- parse arg stylechar
-
- /* needs GoldED functions */
-
- p = address() || ' ' || show('P',,)
- portname = pos('GOLDED.',p)
-
- if portname > 0 then portname = word(substr(p,portname),1)
- else
- do
- say 'No GoldED port found!'
- exit 10
- end
-
- address(portname)
-
- REQLIST ENTRY '"Bold"' '"Italic"' '"Reverse"' '"Underline"' VAR result TITLE '"Select style"'
-
- select
- when(result = 0) then stylechar = '*'
- when(result = 1) then stylechar = '/'
- when(result = 2) then stylechar = '#'
- when(result = 3) then stylechar = '_'
- otherwise exit
- end
-
- PREV
- FIX VAR stylechar
- TEXT T stylechar
- ENDWORD
- RIGHT
- TEXT T stylechar
-